home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / pango-1.0 / pango / pango-utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.6 KB  |  106 lines

  1. /* Pango
  2.  * pango-utils.c: Utilities for internal functions and modules
  3.  *
  4.  * Copyright (C) 2000 Red Hat Software
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #ifndef __PANGO_UTILS_H__
  23. #define __PANGO_UTILS_H__
  24.  
  25. #include <stdio.h>
  26. #include <glib.h>
  27. #include <pango/pango-font.h>
  28.  
  29. G_BEGIN_DECLS
  30.  
  31. char **  pango_split_file_list (const char *str);
  32.  
  33. char    *pango_trim_string     (const char *str);
  34. gint     pango_read_line      (FILE        *stream,
  35.                    GString     *str);
  36. gboolean pango_skip_space     (const char **pos);
  37. gboolean pango_scan_word      (const char **pos,
  38.                    GString     *out);
  39. gboolean pango_scan_string    (const char **pos,
  40.                    GString     *out);
  41. gboolean pango_scan_int       (const char **pos,
  42.                    int         *out);
  43.  
  44. #ifdef PANGO_ENABLE_BACKEND
  45. char *   pango_config_key_get (const char  *key);
  46. void     pango_lookup_aliases (const char   *fontname,
  47.                    char       ***families,
  48.                    int          *n_families);
  49. #endif /* PANGO_ENABLE_BACKEND */
  50.  
  51. /* Functions for parsing textual representations
  52.  * of PangoFontDescription fields. They return TRUE if the input string
  53.  * contains a valid value, which then has been assigned to the corresponding
  54.  * field in the PangoFontDescription. If the warn parameter is TRUE,
  55.  * a warning is printed (with g_warning) if the string does not
  56.  * contain a valid value.
  57.  */
  58. gboolean pango_parse_style   (const char   *str,
  59.                   PangoStyle   *style,
  60.                   gboolean      warn);
  61. gboolean pango_parse_variant (const char   *str,
  62.                   PangoVariant *variant,
  63.                   gboolean      warn);
  64. gboolean pango_parse_weight  (const char   *str,
  65.                   PangoWeight  *weight,
  66.                   gboolean      warn);
  67. gboolean pango_parse_stretch (const char   *str,
  68.                   PangoStretch *stretch,
  69.                   gboolean      warn);
  70.  
  71. #ifdef PANGO_ENABLE_BACKEND
  72.  
  73. /* On Unix, return the name of the "pango" subdirectory of SYSCONFDIR
  74.  * (which is set at compile time). On Win32, return the Pango
  75.  * installation directory (which is set at installation time, and
  76.  * stored in the registry). The returned string should not be
  77.  * g_free'd.
  78.  */
  79. G_CONST_RETURN char *   pango_get_sysconf_subdirectory (void);
  80.  
  81. /* Ditto for LIBDIR/pango. On Win32, use the same Pango
  82.  * installation directory. This returned string should not be
  83.  * g_free'd either.
  84.  */
  85. G_CONST_RETURN char *   pango_get_lib_subdirectory (void);
  86.  
  87. #endif /* PANGO_ENABLE_BACKEND */
  88.  
  89. /* A routine from fribidi that we either wrap or provide ourselves.
  90.  */
  91. gboolean pango_log2vis_get_embedding_levels (gunichar       *str,
  92.                          int             len,
  93.                          PangoDirection *pbase_dir,
  94.                          guint8         *embedding_level_list);
  95.  
  96. G_CONST_RETURN char *pango_language_get_sample_string (PangoLanguage *language);
  97.  
  98. /* Unicode characters that are zero-width and should not be rendered
  99.  * normally.
  100.  */
  101. gboolean pango_is_zero_width (gunichar ch) G_GNUC_CONST;
  102.  
  103. G_END_DECLS
  104.  
  105. #endif /* __PANGO_UTILS_H__ */
  106.